import requests from "../request";
/*
* home 页面的所有接口
* */

//为incomeCard_data 获取消费类型和金额
export const getIncomeCardDate=(start,end,userid)=>{
    return requests({url:`/queryIncomeByDate/${userid}?start=${start}&end=${end}`,method:'get'})
}
//为incomeCard_data 获取消费类型和金额
export const getPayoutCardDate=(start,end,userid)=>{
    return requests({url:`/queryPayoutByDate/${userid}?start=${start}&end=${end}`,method:'get'})
}

//为barPayout_data 获取消费类型和金额
export const getPayoutBarData=(start,end,userid)=>{
    return requests({url:`/queryPayoutGroupByDate/${userid}?start=${start}&end=${end}`,method:'get'})
}
//为barIncome_data 获取消费类型和金额
export const getIncomeBarData=(start,end,userid)=>{
    return requests({url:`/queryIncomeGroupByDate/${userid}?start=${start}&end=${end}`,method:'get'})
}
